package com.sense.kukoo.common.repo.kv.day_night

import com.sense.kukoo.common.repo.kv.KukooKeyValueManager
import com.tencent.mmkv.MMKV

class DayNightImpl(val mmkv: MMKV) {

    fun set(mode:Int){
        mmkv.encode(KukooKeyValueManager.KEY_DAY_NIGHT, mode)
    }

    fun get(def:Int):Int{
        return mmkv.decodeInt(KukooKeyValueManager.KEY_DAY_NIGHT, def)
    }
}